package com.jianbing.redisdemo.controller;

import com.jianbing.redisdemo.HandlerLock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName : Controllerdemo
 * @Description :
 * @Author : JB
 * @Date: 2020-11-29 17:41
 */


@Controller
public class Controllerdemo {
    @Autowired
    private HandlerLock handlerLock;
    @RequestMapping("/hello")
    @ResponseBody
    public void demo(){
        handlerLock.doLock("luking");
    }

}
